import request from '@/utils/request'

// 查询志愿列表
export function listForm(query) {
  return request({
    url: '/gk/volunteerForm/list',
    method: 'get',
    params: query
  })
}

// 查询志愿详细
export function getForm(id) {
  return request({
    url: '/gk/volunteerForm/' + id,
    method: 'get'
  })
}

// 新增志愿
export function addForm(data) {
  return request({
    url: '/gk/volunteerForm',
    method: 'post',
    data: data
  })
}

// 修改志愿
export function updateForm(data) {
  return request({
    url: '/gk/volunteerForm',
    method: 'put',
    data: data
  })
}

// 删除志愿
export function delForm(id) {
  return request({
    url: '/gk/volunteerForm/' + id,
    method: 'delete'
  })
}
